package com.edais.dao;

import com.edais.domain.ExtractConfig;
import com.edais.domain.UserExtractInfo;
import com.edais.domain.gift.PointGrade;
import com.edais.persistence.UserExtractInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public class UserExtractInfoDao {
	@Autowired
	private UserExtractInfoMapper extractInfoMapper;

	public UserExtractInfo getUserExtractInfo(Map<String,Object> paramsMap){
		return this.extractInfoMapper.getUserExtractInfo(paramsMap);
	}

	public ExtractConfig queryExtractConfigByPointGrade(Map<String,Object> paramsMap){
		return this.extractInfoMapper.queryExtractConfigByPointGrade(paramsMap);
	}

	public PointGrade queryPointGradeByUserId(Map<String,Object> paramsMap){
		return this.extractInfoMapper.queryPointGradeByUserId(paramsMap);
	}

	public Integer insertUserExtractInfo(UserExtractInfo userExtractInfo){
		return this.extractInfoMapper.insertUserExtractInfo(userExtractInfo);
	}

	public int updateUserExtractInfo (UserExtractInfo extractInfo){
		return this.extractInfoMapper.updateUserExtractInfo(extractInfo);
	}

	public UserExtractInfo getUserExtractInfoForUpdate(Map<String,Object> paramsMap){
		return this.extractInfoMapper.getUserExtractInfoForUpdate(paramsMap);
	}

	public int returnQuickUserExtractInfo (UserExtractInfo extractInfo){
		return this.extractInfoMapper.returnQuickUserExtractInfo(extractInfo);
	}

	public int returnNormalUserExtractInfo (UserExtractInfo extractInfo){
		return this.extractInfoMapper.returnNormalUserExtractInfo(extractInfo);
	}
}
